.class Lcom/example/m6shop/EditSalesActivity$13;
.super Ljava/lang/Thread;
.source "EditSalesActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/EditSalesActivity;->getcxSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/EditSalesActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/EditSalesActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    .line 552
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 14

    .prologue
    const/4 v13, 0x1

    .line 554
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 556
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 558
    .local v5, "msg":Landroid/os/Message;
    sget-object v10, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v11, "\u5f00\u59cb\u6293\u53d6\u6570\u636e---"

    invoke-virtual {v10, v11}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 559
    iget-object v10, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    .line 560
    const-string v11, "userInfo"

    const/4 v12, 0x0

    .line 559
    invoke-virtual {v10, v11, v12}, Lcom/example/m6shop/EditSalesActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v7

    .line 561
    .local v7, "preferences":Landroid/content/SharedPreferences;
    const-string v10, "uid"

    const-string v11, ""

    invoke-interface {v7, v10, v11}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 562
    .local v0, "account":Ljava/lang/String;
    const-string v10, "pass"

    const-string v11, ""

    invoke-interface {v7, v10, v11}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 563
    .local v6, "password":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v10, ""

    invoke-virtual {v0, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 564
    :cond_0
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 565
    const-string v10, "nologin"

    iput-object v10, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 566
    iput v13, v5, Landroid/os/Message;->arg1:I

    .line 567
    iget-object v10, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    # getter for: Lcom/example/m6shop/EditSalesActivity;->h:Landroid/os/Handler;
    invoke-static {v10}, Lcom/example/m6shop/EditSalesActivity;->access$33(Lcom/example/m6shop/EditSalesActivity;)Landroid/os/Handler;

    move-result-object v10

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 620
    :goto_0
    return-void

    .line 571
    :cond_1
    new-instance v10, Ljava/lang/StringBuilder;

    iget-object v11, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    iget-object v11, v11, Lcom/example/m6shop/EditSalesActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v11}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 572
    const-string v11, "/index.php?ctrl=app&action=getshopcx&datatype=json&uid="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&pwd="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&id="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    # getter for: Lcom/example/m6shop/EditSalesActivity;->id:Ljava/lang/String;
    invoke-static {v11}, Lcom/example/m6shop/EditSalesActivity;->access$42(Lcom/example/m6shop/EditSalesActivity;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    .line 571
    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 573
    .local v9, "url":Ljava/lang/String;
    sget-object v10, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "\u8c03\u7528\u66f4\u65b0\u6570\u636e----------------------------"

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 574
    invoke-static {v9}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 575
    .local v8, "str":Ljava/lang/String;
    sget-object v10, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "\u8fd4\u56de\u6570\u636e"

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 578
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v8}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 580
    .local v4, "json":Lorg/json/JSONObject;
    const-string v10, "error"

    invoke-virtual {v4, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, "true"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_2

    .line 581
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 583
    const-string v10, "msg"

    invoke-virtual {v4, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    iput-object v10, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 584
    const/4 v10, 0x1

    iput v10, v5, Landroid/os/Message;->arg1:I

    .line 585
    iget-object v10, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    # getter for: Lcom/example/m6shop/EditSalesActivity;->h:Landroid/os/Handler;
    invoke-static {v10}, Lcom/example/m6shop/EditSalesActivity;->access$33(Lcom/example/m6shop/EditSalesActivity;)Landroid/os/Handler;

    move-result-object v10

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 612
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v2

    .line 614
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    .line 615
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 617
    const/4 v10, 0x4

    iput v10, v5, Landroid/os/Message;->arg1:I

    .line 618
    iget-object v10, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    # getter for: Lcom/example/m6shop/EditSalesActivity;->h:Landroid/os/Handler;
    invoke-static {v10}, Lcom/example/m6shop/EditSalesActivity;->access$33(Lcom/example/m6shop/EditSalesActivity;)Landroid/os/Handler;

    move-result-object v10

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 588
    .end local v2    # "e":Lorg/json/JSONException;
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v10, "msg"

    invoke-virtual {v4, v10}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_3

    .line 589
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 590
    const/4 v10, 0x2

    iput v10, v5, Landroid/os/Message;->arg1:I

    .line 591
    iget-object v10, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    # getter for: Lcom/example/m6shop/EditSalesActivity;->h:Landroid/os/Handler;
    invoke-static {v10}, Lcom/example/m6shop/EditSalesActivity;->access$33(Lcom/example/m6shop/EditSalesActivity;)Landroid/os/Handler;

    move-result-object v10

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 595
    :cond_3
    const-string v10, "msg"

    invoke-virtual {v4, v10}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v10

    if-nez v10, :cond_4

    .line 596
    iget-object v10, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    const-string v11, "msg"

    invoke-virtual {v4, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v10, Lcom/example/m6shop/EditSalesActivity;->message:Ljava/lang/String;

    .line 598
    :cond_4
    sget-object v10, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v11, "\u8f6c\u6362\u6570\u636e"

    invoke-virtual {v10, v11}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 601
    const-string v10, "msg"

    invoke-virtual {v4, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    .line 602
    .local v1, "cx":Lorg/json/JSONObject;
    const-string v10, "cxinfo"

    invoke-virtual {v1, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    .line 603
    .local v3, "info":Lorg/json/JSONObject;
    iget-object v10, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    const-string v11, "name"

    invoke-virtual {v3, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Lcom/example/m6shop/EditSalesActivity;->access$34(Lcom/example/m6shop/EditSalesActivity;Ljava/lang/String;)V

    .line 607
    sget-object v10, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v11, "\u8fd4\u56de\u6570\u636e\u7ed3\u675f"

    invoke-virtual {v10, v11}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 608
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 609
    sget-object v10, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v11, "\u5173\u95ed\u63d0\u793a"

    invoke-virtual {v10, v11}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 610
    const/16 v10, 0xc

    iput v10, v5, Landroid/os/Message;->arg1:I

    .line 611
    iget-object v10, p0, Lcom/example/m6shop/EditSalesActivity$13;->this$0:Lcom/example/m6shop/EditSalesActivity;

    # getter for: Lcom/example/m6shop/EditSalesActivity;->h:Landroid/os/Handler;
    invoke-static {v10}, Lcom/example/m6shop/EditSalesActivity;->access$33(Lcom/example/m6shop/EditSalesActivity;)Landroid/os/Handler;

    move-result-object v10

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 623
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 624
    monitor-exit p0

    return-void

    .line 623
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
